﻿using Xamarin.Forms;

namespace Games.Common
{
    public class CircleLabel : Label
    {
        public static readonly BindableProperty BackColorProperty = BindableProperty.Create("BackColor", typeof(Color), typeof(CircleLabel), defaultValueCreator: t => Color.Transparent);

        public Color BackColor
        {
            get { return (Color)GetValue(BackColorProperty); }
            set
            {
                SetValue(BackColorProperty, value);
                SetValue(BackgroundColorProperty, Color.Transparent);
            }
        }
    }
}